import http from '@/utils/request'

export const list = {
  login: {
    url: 'user/login',
    method: 'post'
  },
  logout: {
    url: '',
    method: 'post'
  }
}

export const login = params => {
  return http.request({
    ...list.login,
    params
  })
}

export const logout = params => {
  return http.request({
    ...list.logout,
    params
  })
}
